package com.etc.dao;

import com.etc.entity.Comment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {

    /**
     * 根据条件查询评论
     * @param comment
     * @return
     */
    List<Comment> findSelective(Comment comment);

    /**
     * 根据条件插入
     * @param comment
     * @return
     */
    int insertSelective(Comment comment);

    /**
     * 根据Id删除
     * @param comment
     * @return
     */
    int deleteSelectiveById(Comment comment);
}
